package com.mvc.service.vo.impl;

import java.util.List;


import org.aspectj.weaver.patterns.ThisOrTargetAnnotationPointcut;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSON;
import com.mvc.dao.mapper.vo.CityDao;
import com.mvc.model.vo.CityBean;
import com.mvc.service.vo.CityService;
@Service
public class CityServiceImpl implements CityService {

	@Autowired
	private CityDao cityDao;
	
	@Override
	public String getCityList(String json) {
		CityBean cityBean = JSON.parseObject(json, CityBean.class);
		if(cityBean==null){
			cityBean = new CityBean();
		}
		List<CityBean> list = cityDao.getCityList(cityBean);
		return JSON.toJSONString(list, true); 
	}
	
}
